<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
 * Smarty number_format modifier plugin
 * See PHP function number_format for details
 * Type:     modifier<br>
 * Name:     number_format<br>
 * Purpose:  format number
 * @author   Oliver  Leisalu
 * @param string $var
 * @param Int $decimals
 * @param String $decPoint
 * @param String $thousandSeparator
 * @return string
 */
function smarty_modifier_number_format( $var, $decimals, $decPoint = '.', $thousandSeparator = ' ' ) {
    return number_format($var, $decimals, $decPoint, $thousandSeparator );
}

?>
